{php $huodongbaoming = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_form_hdbm')->where('cid', $index['id'])->where('tid', $id)->where('uid', $member.uid)->get()->getRowArray();}<div class="d-kuan d-shangxia-10 d-beijing-fenghong-1 d-yuanjiao-10" >
	<div class="d-neikuang-20" >
		<div class="d-kuan d-jiacu d-zitiyanse-hongse">
			报名活动
			<span class="pull-right">
				@{if $hdfw==0}所有人{else}本圈{/if} 
			</span>
		</div>
		<div class="d-kuan d-wenzi-juzhong d-a-baise d-quxian-0">
			<div class="d-wenzi-20 d-zitiyanse-hongse" id="countdown"></div>
			<div class="d-wenzi-16 ">
				<span class="d-wenzi-12">结束：{$hdjs}</span>
			</div>
			<div class="d-wenzi-16 ">
				<span class="d-wenzi-12">开始：{$hdks}</span>
			</div>
			<div class="d-clear d-shang-20"></div>
			
			{if $hdfw==0}
			    {if strtotime($hdjs) < time()}
				    <a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" >
				    	活动已圆满结束
				    </a>
				{else}
					{if $member}
						{if $huodongbaoming}
						    {if $hdtc == 0}
							<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_o();">
								您已经报名-我要退出
							</a>
							 | <a onclick="javascript:d_huodong_erweima_yonghu();">二维码</a>
							{else}
							<a onclick="javascript:d_huodong_erweima_yonghu();" class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong">
								您已经报名 | 二维码
							</a>
							{/if}
						{else}
							{if $hdwxh==2 || $hdsjh==2 || $sctp==2 || $scfj==2}
								
								
								{if $hdfs==4}
									{php $yue=number_format($member.money, 2);}
									{php $inhuodongfufei = \Phpcmf\Service::M()->db->table('1_quan_huodong_buy')->where('tid', $id)->where('uid', $member.uid)->get()->getRowArray();}
										{if $inhuodongfufei}
											{php $inhuodongziliao = \Phpcmf\Service::M()->db->table('1_quan_form_hdbm')->where('cid', $id)->where('uid', $member.uid)->get()->getRowArray();}
											{if $inhuodongziliao}
											<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_ziliao();">
												您的报名资料
											</a>
											{else}
											<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_tianziliao();">
												请填写报名资料
											</a>
											{/if}
										{else}
											<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_chongzhi();">
												立即报名
											</a>
										{/if}
										
										{if $yue < $hdfy}
											<!--div class="d-yincang">
												<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong " onclick="javascript:d_huodong_chongzhi();">
													先充值，后报名
												</a>
											</div>
											<div class="d-yincang-pc">
												<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong " href="{dr_member_url('pay/recharge/index')}">
													先充值，后报名
												</a>
												
											</div-->
											
										{else}
											<!--a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_2();">
												立即报名
											</a-->
										{/if}
										
										
								{else}
									<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_2();">
										立即报名
									</a>
								{/if}
							{else}
							    {if $hdfs==4}
							    {php $yue=number_format($member.money, 2);}
							    {php $inhuodongfufei = \Phpcmf\Service::M()->db->table('1_quan_huodong_buy')->where('tid', $id)->where('uid', $member.uid)->get()->getRowArray();}
							        {if $inhuodongfufei}
							    	    {php $inhuodongziliao = \Phpcmf\Service::M()->db->table('1_quan_form_hdbm')->where('cid', $id)->where('uid', $member.uid)->get()->getRowArray();}
							    		{if $inhuodongziliao}
							    		<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_ziliao();">
							    			您的报名资料
							    		</a>
							    		{else}
							    		<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_o();">
							    			立即报名
							    		</a>
							    		{/if}
							    	{else}
							    		<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_chongzhi();">
							    			立即报名
							    		</a>
							    	{/if}
							    	
							    	{if $yue < $hdfy}
							    		<!--div class="d-yincang">
							    			<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong " onclick="javascript:d_huodong_chongzhi();">
							    				先充值，后报名
							    			</a>
							    		</div>
							    		<div class="d-yincang-pc">
							    			<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong " href="{dr_member_url('pay/recharge/index')}">
							    				先充值，后报名
							    			</a>
							    			
							    		</div-->
							    		
							    	{else}
							    		<!--a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_2();">
							    			立即报名
							    		</a-->
							    	{/if}
							    	
							    	
							    {else}
									<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_o();">
										立即报名
									</a>
							    {/if}
								
							{/if}
						{/if}
					{else}
						<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
							立即报名
						</a>
					
					{/if}
				{/if}
			{else}
			    {if strtotime($hdjs) < time()}
					<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" >
						活动已圆满结束
					</a>
				{else}
					{php $huodonghuiyuan = \Phpcmf\Service::M()->db->table('1_quan_cart')->where('cid', $index['id'])->where('uid', $member.uid)->get()->getRowArray();}
					{if $huodonghuiyuan || $uid == $member.uid || $index['uid'] == $member.uid}
						{if $huodongbaoming}
							{if $hdtc == 0}
							<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_o();">
								您已经报名-我要退出
							</a>
							 | <a onclick="javascript:d_huodong_erweima_yonghu();">二维码</a>
							{else}
							<a onclick="javascript:d_huodong_erweima_yonghu();" class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong">
								您已经报名 | 二维码
							</a>
							{/if}
						{else}
							{if $hdwxh==2 || $hdsjh==2 || $sctp==2 || $scfj==2}
								
								<!--a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_baoming();"-->
								{if $hdfs==4}
									{php $yue=number_format($member.money, 2);}
									{php $inhuodongfufei = \Phpcmf\Service::M()->db->table('1_quan_huodong_buy')->where('tid', $id)->where('uid', $member.uid)->get()->getRowArray();}
										{if $inhuodongfufei}
											{php $inhuodongziliao = \Phpcmf\Service::M()->db->table('1_quan_form_hdbm')->where('cid', $id)->where('uid', $member.uid)->get()->getRowArray();}
											{if $inhuodongziliao}
											<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_ziliao();">
												您的报名资料
											</a>
											{else}
											<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_tianziliao();">
												请填写报名资料
											</a>
											{/if}
										{else}
											<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_chongzhi();">
												立即报名
											</a>
										{/if}
									
								{else}
								<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_2();">
									立即报名
								</a>
								{/if}
							{else}
							
								{if $hdfs==4}
								{php $yue=number_format($member.money, 2);}
								{php $inhuodongfufei = \Phpcmf\Service::M()->db->table('1_quan_huodong_buy')->where('tid', $id)->where('uid', $member.uid)->get()->getRowArray();}
								    {if $inhuodongfufei}
									    {php $inhuodongziliao = \Phpcmf\Service::M()->db->table('1_quan_form_hdbm')->where('cid', $id)->where('uid', $member.uid)->get()->getRowArray();}
										{if $inhuodongziliao}
										<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_ziliao();">
											您的报名资料
										</a>
										{else}
										<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_o();">
											立即报名
										</a>
										{/if}
									{else}
										<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_chongzhi();">
											立即报名
										</a>
									{/if}
									

									
									
								{else}
									<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong" onclick="javascript:d_huodong_o();">
										立即报名
									</a>
								{/if}
							{/if}
						{/if}
					{else}
					
						<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong tag_joins_huodong" data-id="{$index['id']}" id="tag_joins_{$index['id']}">
							加入圈子后报名
						</a>
					{/if}
				{/if}
			{/if}
			{count action=table table=1_quan_form_hdbm tid=$id return=huodongtongji}
			{php $shengyuminge = (int)$hdrs - (int)$huodongtongji_count;}
			{if $shengyuminge == 0}
			<div class="d-wenzi-14 d-shang-20">
				<span class="d-jiacu">
				    人数已满
				</span>
			</div>
			{else}
			<div class="d-wenzi-14 d-shang-20">
				还剩余 <span class="d-jiacu">
				    {$shengyuminge}
				</span> 个名额
			</div>
			{/if}
			
			<div class="d-wenzi-14 ">
				
				{if $hdfs==1}
					线下免费活动
				{elseif $hdfs==2}
					线下付费活动, 每人支付 {$hdfy} 元
				{elseif $hdfs==3}
					线上免费活动
				{elseif $hdfs==4}
					线上付费活动, 每人支付 {$hdfy} 元
				{elseif $hdfs==5}
					线上{SITE_SCORE}活动,每人消耗 {$huodongjifen} {SITE_SCORE}
				{/if}
			</div>
			
			{if $huodongtongji_count > 0}
			<div class="d-yuanjiao-20 d-kuan d-buhuanhang d-shang-10 d-a-hei">
				{table table=1_quan_form_hdbm baominghedui=1 tid=$id order=inputtime_desc num=15 return=t}
					<a href="/index.php?s=huiyuan&c=show&m=index&uid={$t.uid}" class="d-touxiang-30-0">
						<img src="{dr_avatar($t.uid)}" class=" d-yuanjiao-50"  width="25" height="25"/>
					</a>
				{/table}
			</div>
			{/if}
			<div class="d-wenzi-14 d-wenzi-zuo d-shang-10 d-a-hei" >
				<a onclick="javascript:d_huodong_baoming_yonghu();" style="color: #2b2b2b;">已报名 {$huodongtongji_count} 位</a>
			</div>
			
		</div>
	</div>
</div>
<!--付费-->
<div class="d-xiala-huodong" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<div class="d-neikuang-15 d-wenzi-juzhong">
					<div class="d-kuan d-neikuang-10" onclick="javascript:d_huodong_baoming();"><i class="bi bi-x-circle-fill"></i></div>
					<div class="d-kuan d-wenzi-14">
						您的余额：<span>{number_format($member.money, 2)} 元</span>  您的{SITE_SCORE}：<span>{$member.score} </span>
					</div>
					<input class="form-control d-shang-10" placeholder="输入手机号..." type="text" name="data[feiyong]" id="dr_feiyong" value="" >
					<input class="form-control d-shang-10" placeholder="输入微信号..." type="text" name="data[feiyong]" id="dr_feiyong" value="" >
					<div class="d-kuan d-wenzi-14 d-shang-15">
					<div>上传图片</div>
					<?php 
					\Phpcmf\Service::L('Field')->value=[];
					// 这里需要把[]改为储存数组变量，多个字段只需要赋值一次;
					?>
					<?php echo dr_fieldform('{"name":"上传图片","fieldname":"sctp","ismain":"1","fieldtype":"Files","setting":{"option":{"size":"10","count":"20","ext":"jpg,gif,png","attachment":"0","image_reduce":"1000","is_ext_tips":"0","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $sctp, 1, 1);?>
					</div>
					<div class="d-kuan d-wenzi-14 d-shang-15">
						<div>上传附件</div>
					<?php \Phpcmf\Service::L('Field')->value=[];?>
					<?php echo dr_fieldform('{"name":"上传附件","fieldname":"scfj","ismain":"1","fieldtype":"Files","setting":{"option":{"size":"50","count":"5","ext":"rar,zip","attachment":"0","image_reduce":"","is_ext_tips":"0","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $scfj, 1, 1);?>
					</div>
					<div class="d-clear d-shang-20"></div>
					<div class="d-kuan d-wenzi-14">
						{if $hdfs==1}
							参与本次活动免费
						{elseif $hdfs==2}
							参与本次活动, 需要支付 {$hdfy} 元
						{elseif $hdfs==3}
							参与本次活动免费
						{elseif $hdfs==4}
							参与本次活动, 每人支付 {$hdfy} 元
						{elseif $hdfs==5}
							参与本次活动, 消耗 {$huodongjifen} {SITE_SCORE}
						{/if}
						
					</div>
					<div class="d-clear d-shang-20"></div>
					<a class="d-waikuang-10 d-neikuang-30-30 d-beijing-fenhong">
						立即报名
					</a>
				</div>
				
			</div>
		</div>
	</div>
	

</div>
<!--报名用户-->
<div class="d-xiala-huodong-yonghu" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<div class="d-neikuang-15 ">
					<div class="d-kuan d-neikuang-10" onclick="javascript:d_huodong_baoming_yonghu();"><i class="bi bi-x-circle-fill"></i></div>
				</div>
				{table table=1_quan_form_hdbm baominghedui=1 tid=$id order=inputtime_desc num=1000 return=t}
				{php $user=dr_member_info($t.uid);} 
				<div class="d-kuan d-neikuang-5-10 d-buhuanhang d-wenzi-12">
					
					<div class="d-img-20">
						<a href="/index.php?s=huiyuan&c=show&m=index&uid={$t.uid}" class="d-touxiang-20-0 d-img-20">
							<img src="{dr_avatar($t.uid)}" class=" d-yuanjiao-50" width="16" height="16"/>
						</a>
					</div>
					<div class="d-zuo-10">
						报名号：{$t.id}
					</div>
					<div class="d-zuo-10">
						{$user.username}
					</div>
					{if $t.weixinhao > 0}
						
						{if $member.is_admin}
						    <div class="d-zuo-10">
							    <i class="fa fa-wechat"></i> {$t.weixinhao}
						    </div>
						
						{elseif $uid == $member.uid}
						    <div class="d-zuo-10">
							    <i class="fa fa-wechat"></i> {$t.weixinhao}
						    </div>
						{elseif $t.uid == $member.uid}
						    <div class="d-zuo-10">
							    <i class="fa fa-wechat"></i> {$t.weixinhao}
						    </div>
						{else}
						
						{/if}
						
					{/if}
					{if $t.shoujihaoma > 0}
						
						{if $member.is_admin}
						    <div class="d-zuo-10">
							<i class="fa fa-whatsapp"></i> 
							{$t.shoujihaoma}
							</div>
						
						{elseif $uid == $member.uid}
						    <div class="d-zuo-10">
							<i class="fa fa-whatsapp"></i> 
							{$t.shoujihaoma}
							</div>
						{elseif $t.uid == $member.uid}
						    <div class="d-zuo-10">
							<i class="fa fa-whatsapp"></i> 
							{$t.shoujihaoma}
							</div>
						{else}
						
						{/if}
					{/if}
					
				</div>
				{/table}
				
			</div>
		</div>
	</div>
</div>

<!--用户二维码-->
<div class="d-xiala-erweima-yonghu" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<div class="d-neikuang-15 ">
					<div class="d-kuan d-neikuang-10 d-wenzi-juzhong" onclick="javascript:d_huodong_erweima_yonghu();"><i class="bi bi-x-circle-fill"></i></div>
				</div>
				
				<div class="d-kuan d-wenzi-juzhong">
				    <div >【 {$title} 】</div>
				    <div >活动认证二维码</div>
				    {php $erweimaurl=dr_member_url("quan/hdbm/renzheng", ["tid" => $id,"quan"=>$index.id,"uid"=>$member.uid,'quanuid'=>$index.uid,'tieuid'=>$uid,'leixing'=>1]);}
				    <img style="width:150" src="{dr_qrcode($erweimaurl,'','H',6)}">
				</div>
				<div class="d-kuan d-wenzi-juzhong">
				{table table=1_quan_form_hdbm baominghedui=1 uid=$member.uid tid=$id order=inputtime_desc num=1 return=t}
				    {php $user=dr_member_info($member.uid);} 
				    <div class="d-zuo-10">
						报名号：{$t.id}
					</div>
					<div class="d-zuo-10">
						{$user.username}
					</div>
					{if $t.weixinhao > 0}
						
						{if $member.is_admin}
						    <div class="d-zuo-10">
							    <i class="fa fa-wechat"></i> {$t.weixinhao}
						    </div>
						
						{elseif $uid == $member.uid}
						    <div class="d-zuo-10">
							    <i class="fa fa-wechat"></i> {$t.weixinhao}
						    </div>
						{elseif $t.uid == $member.uid}
						    <div class="d-zuo-10">
							    <i class="fa fa-wechat"></i> {$t.weixinhao}
						    </div>
						{else}
						
						{/if}
						
					{/if}
					{if $t.shoujihaoma > 0}
						
						{if $member.is_admin}
						    <div class="d-zuo-10">
							<i class="fa fa-whatsapp"></i> 
							{$t.shoujihaoma}
							</div>
						
						{elseif $uid == $member.uid}
						    <div class="d-zuo-10">
							<i class="fa fa-whatsapp"></i> 
							{$t.shoujihaoma}
							</div>
						{elseif $t.uid == $member.uid}
						    <div class="d-zuo-10">
							<i class="fa fa-whatsapp"></i> 
							{$t.shoujihaoma}
							</div>
						{else}
						
						{/if}
					{/if}
				{/table}
				    <div class="d-kuan d-wenzi-juzhong">
						{php $renzhengshu = \Phpcmf\Service::M()->db->table('1_quan_form_hdbm_renzheng')->where('cid', $id)->where('uid', $member.uid)->countAllResults();}
						{if $renzhengshu}
						    {php $i=1;}
						    {table table=1_quan_form_hdbm_renzheng uid=$member.uid cid=$id num=10 return=t}
							    <div class="d-shang-10">
							    <i class="bi bi-person-bounding-box"></i> 
							    第<span class="d-zitiyanse-hongse">{$i}</span>次认证：<span class="d-zitiyanse-hongse">{dr_date($t.inputtime, "Y-m-d (H:i:s) ")}</span>
							    </div>
								{php $i++;}
								
							{/table}
							
						{/if}
					</div>
				</div>
				
				
			</div>
		</div>
	</div>
</div>
<div class="d-yincangyd">
	<div class="d-kuan d-buhuanhang d-shang-15 d-xia-10 ">
		{loop $fuchiguige $i $v}
			<div class="d-kuan d-xia-15 d-yuanjiao-10 d-neikuang-10">
				<div class="d-kuan d-juzhong  d-bian-1-hui d-yuanjiao-10 d-neikuang-10">
				<span class="d-zitiyanse-hui">{$chuangyejinmingcheng}</span> <span class="d-wenzi-18 d-shang-10" style="color: #009c00;">{$v[1]}</span> <span class="d-zitiyanse-hui">{$chuangyejindanwei}</span>
					<div class="d-zitiyanse-hui d-wenzi-12">申请费用：{$v[2]}/元 </div>
					<div class="d-kua">
						<span class="d-wenzi-12 d-shang-10">可用：</span>
					</div>
					<div class="d-kua">
						<span class="d-wenzi-12 d-shang-10">{$v[1] + $v[2]} {$chuangyejindanwei} {$chuangyejinmingcheng}</span>
					</div>
					<div class="d-kua">
						
						{php $benrenyue=number_format($member.money, 2);}
						{php $chuangyejine =number_format($v[2]);}
						{if $chuangyejine > $benrenyue}
						<a class="d-div-you d-wenzi-12 tag_chuangyejin_huodong" data-zhi="{$chuangyejine}" >先充值，后申请</a>
						{else}
						<button type="button" class="btn btn-default btn-xs d-div-you tag_chuangyejin_queren" data-toggle="modal" data-target="#myModal" data-shenqingfei="{$chuangyejine}" data-jin="{$v[1]}" data-tieid="{$id}" data-i="{$i}">
						  申请
						</button>
						<!--a class="d-div-you d-wenzi-12 tag_chuangyejin_shenqing" data-target="#myModal" data-toggle="modal" data-shenqingfei="{$chuangyejine}" data-jin="{$v[1]}">
							申请
						</a-->
						{/if}
						
					</div>
					<div class="d-clear"></div>
				</div>
				<div class="d-kuan d-shang-5 d-beijing-hei-f0 d-wenzi-12  d-yuanjiao-10 d-neikuang-10">
					{$v[3]}
				</div>
			</div>
		{/loop}
	</div>
</div>

<div class="d-yincangpc">

	<div class="d-kuan d-shang-15 d-xia-10 ">
		{loop $hdfy $i $v}
			<div class="d-kuan d-xia-15 d-yuanjiao-10 d-neikuang-10">
				<div class="d-kuan d-juzhong  d-bian-1-hui d-yuanjiao-10 d-neikuang-10">
				<span class="d-zitiyanse-hui">{$chuangyejinmingcheng}</span> <span class="d-wenzi-18 d-shang-10" style="color: #009c00;">{$v[1]}</span> <span class="d-zitiyanse-hui">{$chuangyejindanwei}</span>
					<div class="d-zitiyanse-hui d-wenzi-12">申请费用：{$v[2]}/元 </div>
					<div class="d-kua">
						<span class="d-wenzi-12 d-shang-10">可用：</span>
					</div>
					<div class="d-kua">
						<span class="d-wenzi-12 d-shang-10">{$v[1] + $v[2]} {$chuangyejindanwei} {$chuangyejinmingcheng}</span>
					</div>
					<div class="d-kua">
						
						{php $benrenyue=number_format($member.money, 2);}
						{php $chuangyejine =number_format($v[2]);}
						{if $chuangyejine > $benrenyue}
						<a class="d-div-you d-wenzi-12 tag_chuangyejin_huodong" data-zhi="{$chuangyejine}" >先充值，后申请</a>
						{else}
						<button type="button" class="btn btn-default btn-xs d-div-you tag_chuangyejin_queren" data-toggle="modal" data-target="#myModal" data-shenqingfei="{$chuangyejine}" data-jin="{$v[1]}" data-tieid="{$id}" data-i="{$i}">
						  申请
						</button>
						<!--a class="d-div-you d-wenzi-12 tag_chuangyejin_shenqing" data-target="#myModal" data-toggle="modal" data-shenqingfei="{$chuangyejine}" data-jin="{$v[1]}">
							申请
						</a-->
						{/if}
						
					</div>
					<div class="d-clear"></div>
				</div>
				<div class="d-kuan d-shang-5 d-beijing-hei-f0 d-wenzi-12  d-yuanjiao-10 d-neikuang-10">
					{$v[3]}
				</div>
			</div>
		{/loop}
	</div>

</div>
<style>
	.d-beijing-fenghong-1 {
		background-color: #fff6f6;
	}
	.d-a-baise a {
		border-radius: 10px;
		color: #ffffff;
	}
	.d-a-baise a:hover {
		
		border-radius: 10px;
		color: #ffffff;
	}
	.d-touxiang-30-0 {
	    margin-right: -10px;
	    /*background-color: #ffffff;*/
	    border-radius: 50px;
	    /*box-shadow: 0 -3px 6px rgb(0 0 0 / 100%);*/
	    
	}
	.d-touxiang-30-0 img{
	    max-width: 100%;
	    margin-bottom: 0px;
	    background-color: #ffffff;
		border: 2px solid #ffffff;
	}
	.d-touxiang-20-0 {
	    
	    /*background-color: #ffffff;*/
	    border-radius: 50px;
	    /*box-shadow: 0 -3px 6px rgb(0 0 0 / 100%);*/
	    
	}
	.d-touxiang-20-0 img{
	    max-width: 100%;
	    margin-bottom: 0px;
	    background-color: #ffffff;
	}
	
	/*.d-img img{
		width: 30px;
		height: 30px;
	}*/
	.d-img-20 {
		width: 20px;
		height: 20px;
	}
	.d-img-20 img{
		width: 20px;
		height: 20px;
	}
	.d-xiala-huodong {
	    z-index: 999999;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    height: 70%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.preview {
	    height: 55px;
	    border: 1px solid #f5f5f5;
	}
	.d-xiala-huodong-yonghu {
	    z-index: 999999;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    height: 70%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.d-xiala-erweima-yonghu {
	    z-index: 999999;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    height: 70%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.layui-layer-btn- {
		/*display: none;*/
	}
	.xia-20 {
		margin-bottom: 20px;
	}
	.d-yincangyd {
		display:block;
	}
	.d-yincangpc {
		display:none;
	}
	.modal-open {
	    overflow: auto;
	}
	@media screen and (max-width: 990px) { 
		.d-yincangyd {
			display:none;
		}
		.d-yincangpc {
			display:block;
		}
	}
</style>

<script type="text/javascript">
//倒计时
function d_daojishi(){
	$(document).ready(function() {
			// 设置倒计时的结束时间
			var countDownDate = new Date("{$hdjs}").getTime();
			// 每隔1秒钟更新倒计时
			var countdownInterval = setInterval(function() {
			// 获取当前时间
			var now = new Date().getTime();
			// 计算时间差
			var distance = countDownDate - now;
			// 计算倒计时的天、小时、分钟和秒
			var days = Math.floor(distance / (1000 * 60 * 60 * 24));
			var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
			var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
			var seconds = Math.floor((distance % (1000 * 60)) / 1000);

			// 在页面上更新倒计时
			$("#countdown").html(days + " 天 " + hours + " 小时 " + minutes + " 分钟 " + seconds + " 秒 "+" 结束 ");

			// 如果倒计时结束，清除定时器
			if (distance < 0) {
				clearInterval(countdownInterval);
				$("#countdown").html("");
			}
		}, 500);
	});
}
d_daojishi();
//每一秒执行一次
function d_huodong_baoming() {
	if ($('.d-xiala-huodong').is(':hidden')) {
		$('.d-xiala-huodong').show();
	} else {
		$('.d-xiala-huodong').hide();
	}
}
//报名用户
function d_huodong_baoming_yonghu() {
	if ($('.d-xiala-huodong-yonghu').is(':hidden')) {
		$('.d-xiala-huodong-yonghu').show();
	} else {
		$('.d-xiala-huodong-yonghu').hide();
	}
}
//用户二维码
function d_huodong_erweima_yonghu() {
	if ($('.d-xiala-erweima-yonghu').is(':hidden')) {
		$('.d-xiala-erweima-yonghu').show();
	} else {
		$('.d-xiala-erweima-yonghu').hide();
	}
}
function d_huodong_o() {
	$.ajax({
	    type: "GET",
	    url: "/index.php?s=member&app=quan&c=hdbm&m=add&tid={$id}&cid={$index.id}",
	    dataType: "json",
	    success: function (res) {
	        layer.msg(res.msg, {
	            time: 1000
	        }, function() {
	            location.reload();
	        });
			/*$('#d-qiandao-zhi').html(res.data.zhi);
			$('#d-qiandao-zhi2').html(res.data.zhi);
			$('#d-qiandao-jingyan').html(res.data.jingyan);
			$('#d-qiandao-tian').html(res.data.tian);
			$('.d-qiandao-tanchu').show();*/
	    },
	    error: function(e) {}
	});
	//layer.msg("已经显示完了",{time:500});
}

function d_huodong_2() {
    dr_iframe("{dr_lang('活动报名')}", "{dr_member_url('quan/hdbm/addziliao', ['cid'=>$index.id,'tid'=>$id])}", '100%', '100%');
}

	// 加入圈子
	$(".tag_joins_huodong").click(function(){
		 var id = $(this).data("id");
		 $.get("/index.php?is_ajax=1&s={MOD_DIR}&c=show&m=cart&id="+id, function(data){
			 dr_cmf_tips(data.code, data.msg);
	        if (data.msg ==="加入圈子") {
				window.location.reload();
	           
	        } else {
				window.location.reload();
	        	
	        }
	    }, 'json');
	});
function d_huodong_chongzhi() {
    //dr_iframe("{dr_lang('活动报名充值')}", "{dr_member_url('pay/recharge/index')}", '100%', '100%');
	window.location.href = "{dr_url('quan/huodong/jiance',['id'=>$id])}";
}
function d_huodong_tianziliao() {
    //dr_iframe("{dr_lang('活动报名充值')}", "{dr_member_url('pay/recharge/index')}", '100%', '100%');
	window.location.href = "{dr_member_url('quan/hdbm/addziliao',['cid'=>$index.id,'tid'=>$id])}";
}
</script>
